package com.smart.lib.service;

import com.smart.lib.mapper.CollegeMapper;
import com.smart.lib.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学院和专业方向实体类
 * */
@Service
public class CollegeService {
    @Autowired
    CollegeMapper collegeMapper;

    /**
     * 查询所有学院及专业方向信息
     * */
    public Response getAllCollegeAndMajors(){
        return new Response(200,"查询成功",collegeMapper.getAllCollegeAndMajors());
    }
}
